#ifndef WORLD_H
#define WORLD_H

#include <SFML/Graphics.hpp>
#include <iostream>
#include <string>
#include "Pnj.h"
#include "var_define.h"
#include <stdio.h>
#include "Map.h"
#include "time.h"
#include <pthread.h>
#include "Fighter.h"
#include "FichierDial.h"

using namespace std;
using namespace sf;

class World
{
    public:
        World();
        ~World();
        void movePnj();
         RenderWindow& getWorldWindow();

    void main();
    private:
        //Pnj perso;
        Fighter perso;
        Pnj *pnj;
        int nbPnj;
        Map map;
        RenderWindow worldWindow;
        View view;
        Event event;
        FichierDial dial;
        float taux;

        void draw();

        void searchInteraction();
        void dialogue(Pnj& p);

        void rencontre();


};

#endif // WORLD_H
